package org.jiajie.designpatterndemo.template;

/**
 * Cricket是扩展了Game的实体类，
 * 它重写了抽象类的方法。
 *
 * @author jay
 */
public class Cricket extends Game {
    @Override
    void initialize() {
        System.out.println("Cricket Game Initialized! Start playing.");
    }

    @Override
    void startPlay() {
        System.out.println("Cricket Game started. Enjoy the game!");
    }

    @Override
    void endPlay() {
        System.out.println("Cricket Game Finished");
    }
}
